/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * EstadisticaMercado.java
 *
 * Created on 05/07/2011, 10:13:05 PM
 */

package GUI;

import Interfaz.InterfazControl;
import Motor.ClaseUtilitaria;
import javax.swing.ImageIcon;
import Motor.Empleado;

/**
 *
 * @author Davielis
 */
public class EstadisticaMercado extends javax.swing.JFrame {

    /** Creates new form EstadisticaMercado */

	private InterfazControl control;
	private Empleado empleado1 ;
	private InterfazControl laInterfaz;
    public EstadisticaMercado(InterfazControl laInterfaz,Empleado empleado) {
        //initComponents();
		this.control=laInterfaz;
		empleado1=empleado;
        initComponents();
		this.setLocationRelativeTo(null); // Cambiar icono de java en ventana
        this.setIconImage(new ImageIcon("src/imagenes/marketplus2.png").getImage());
		jTFecha.setText(ClaseUtilitaria.tenerFechaActual());
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel4 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jTFecha = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jCEstadisticas = new javax.swing.JComboBox();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        jBRegresar = new javax.swing.JButton();
        jLabel11 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(650, 550));
        setResizable(false);
        getContentPane().setLayout(null);

        jLabel4.setFont(new java.awt.Font("Tempus Sans ITC", 3, 24)); // NOI18N
        jLabel4.setText("Estadísticas Market Plus");
        getContentPane().add(jLabel4);
        jLabel4.setBounds(190, 30, 390, 40);

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/marketplus.png"))); // NOI18N
        getContentPane().add(jLabel2);
        jLabel2.setBounds(20, 10, 100, 94);

        jLabel3.setText("Fecha:");
        getContentPane().add(jLabel3);
        jLabel3.setBounds(370, 120, 60, 20);

        jTFecha.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTFechaActionPerformed(evt);
            }
        });
        getContentPane().add(jTFecha);
        jTFecha.setBounds(420, 120, 180, 20);

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagenes/estadisticas.jpg"))); // NOI18N
        getContentPane().add(jLabel1);
        jLabel1.setBounds(20, 140, 300, 310);

        jCEstadisticas.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Seleccione Estadísticas", "Usos de Promotoras", "Distribucción de Cajeras", "Pronósticos" }));
        getContentPane().add(jCEstadisticas);
        jCEstadisticas.setBounds(370, 150, 230, 20);

        jTextArea1.setColumns(20);
        jTextArea1.setRows(5);
        jScrollPane1.setViewportView(jTextArea1);

        getContentPane().add(jScrollPane1);
        jScrollPane1.setBounds(370, 180, 230, 230);

        jBRegresar.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jBRegresar.setText("Regresar");
        jBRegresar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBRegresarActionPerformed(evt);
            }
        });
        getContentPane().add(jBRegresar);
        jBRegresar.setBounds(370, 430, 230, 23);

        jLabel11.setFont(new java.awt.Font("Tahoma", 1, 10)); // NOI18N
        jLabel11.setText("RIF: J-122231245          Desarrollado por: Group Delivery");
        getContentPane().add(jLabel11);
        jLabel11.setBounds(170, 470, 320, 20);

        pack();
    }// </editor-fold>//GEN-END:initComponents

	private void jTFechaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTFechaActionPerformed
		// TODO add your handling code here:
		jTFecha.setText(ClaseUtilitaria.tenerFechaActual());
}//GEN-LAST:event_jTFechaActionPerformed

	private void jBRegresarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBRegresarActionPerformed
		// TODO add your handling code here:
		Gerente irGerente = new Gerente(laInterfaz, empleado1);
		irGerente.setVisible(true);
		this.dispose();
}//GEN-LAST:event_jBRegresarActionPerformed

    /**
    * @param args the command line arguments
    */
   

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jBRegresar;
    private javax.swing.JComboBox jCEstadisticas;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextField jTFecha;
    private javax.swing.JTextArea jTextArea1;
    // End of variables declaration//GEN-END:variables

}
